#!/bin/sh

# Author: Zhang Huangbin (michaelbibby <at> gmail.com)

PROG_NAME='iRedMail'
PROG_NAME_LOWERCASE='iredmail'

# -----------------
# ---- Generic ----
# -----------------

# Maildir format: mbox, Maildir.
HOME_MAILBOX='Maildir'

# vmail user.
export VMAIL_USER_NAME='vmail'
export VMAIL_GROUP_NAME='vmail'
export VMAIL_ADMIN_USER_NAME="${VMAIL_USER_NAME}admin"
export VMAIL_USER_UID='2000'
export VMAIL_USER_GID='2000'

# SPF.
# Either 'pypolicyd-spf' or 'perl-Mail-SPF'
# pypolicyd-spf is *NOT* recommended.
SPF_PROGRAM='perl-Mail-SPF'

# TLS support.
export TLS_COUNTRY='CN'
export TLS_STATE='GuangDong'
export TLS_CITY='ShenZhen'
export TLS_COMPANY="$(hostname)"
export TLS_DEPARTMENT='IT'
export TLS_HOSTNAME="$(hostname)"
export TLS_ADMIN="root@$(hostname)"

# ----------------------------------
# You do *NOT* need to modify them.
# ----------------------------------
export HOSTNAME="$(hostname)"
export DATE=$(/bin/date +%Y.%m.%d_%H.%M.%S)

# Tools.
export CONFIG_VIA_DIALOG="${TOOLS_DIR}/config_via_dialog.sh"
export CONFIG_FILE="${ROOTDIR}/config"
export TIP_FILE="${ROOTDIR}/${PROG_NAME}.tips"
export STATUS_FILE="${ROOTDIR}/.${PROG_NAME}.installation.status"

# iRedMail specical.
export OUTPUT_FLAG="<<< ${PROG_NAME} >>>"
export QUESTION_FLAG="<<< Question >>>"
export BACKUP_FLAG="<<< BACKUP >>>"
export LOCAL_REPO_NAME="${PROG_NAME}"
export LOG_ROTATE_DIR='/etc/logrotate.d/'

export CONF_MSG="#
# File generated by ${PROG_NAME}(${DATE}) which stands for:
# Mail Server Solution for Red Hat(R) Enterprise Linux series.
#
# Project:  http://${PROG_NAME}.googlecode.com/
# Forum:    http://www.osspinc.com/bbs/
#
"

# For perl.
export LC_ALL=C

# Arch.
export ARCH="$(uname -i)"
